/*
 * c12-一维数组.c
 *
 *  Created on: May 12, 2019
 *      Author: young
 */
//计算斐波拉切数列

#include<stdio.h>

int main(void){

	int i;
	int fib[10] ={1, 1};

	for(i=2;i<10;i++){
		fib[i]= fib[i-1]+fib[i-2];
	}

	for(i=0;i<10;i++){
		printf("%6d", fib[i]);
		if((i+1)%5==0){
			printf("\n");
		}
	}

	return 0;
}
